Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EC-960 Remove last remnants of go-getter #2300

Merged
merged 4 commits into from
Feb 5, 2025

Conversation

robnester-rh
Copy link
Contributor

This PR removes any direct dependencies on go-getter and replaces them with go-gather as appropriate. Note that go-getter does remain as an indirect dependency.

This commit bumps the dependency version for go-gather.

Ref: EC-960

Signed-off-by: robnester-rh <[email protected]>
This commit removes "github.com/hashicorp/go-getter" as a direct
dependency. It does remain as an indirect dependency, however.

Ref: EC-960

Signed-off-by: robnester-rh <[email protected]>
This commit refactors `git-config` to use the detector methods from the
`github.com/enterprise-contract/go-gather/detector` package.

Signed-off-by: robnester-rh <[email protected]>
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.79%. Comparing base (46d5c18) to head (8f24c41).
Report is 13 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2300      +/-   ##
==========================================
+ Coverage   72.77%   72.79%   +0.02%     
==========================================
  Files          89       89              
  Lines        7676     7687      +11     
==========================================
+ Hits         5586     5596      +10     
- Misses       2090     2091       +1     
Flag Coverage Δ
generative 72.79% <100.00%> (+0.02%) ⬆️
integration 72.79% <100.00%> (+0.02%) ⬆️
unit 72.79% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
internal/downloader/downloader.go 91.66% <ø> (ø)
internal/policy/source/git_config.go 22.22% <100.00%> (-16.02%) ⬇️

... and 3 files with indirect coverage changes

Copy link
Member

@simonbaird simonbaird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, but see my question about the (maybe unexpected?) test change.

This commit restores a TestSourceIsFile case.

Signed-off-by: robnester-rh <[email protected]>
@robnester-rh robnester-rh merged commit eb5e162 into enterprise-contract:main Feb 5, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants